package com.bsoft.advance.core.register;

import com.bsoft.advance.core.common.ServiceInfo;

/**
 * 服务注册接口
 */
public interface RegistryService {

    void register(ServiceInfo info) throws Exception;

    void unRegister(ServiceInfo info) throws Exception;

    /**
     * 销毁，关闭服务发现
     */
    void destroy() throws Exception;
}
